﻿@model E5_KhuyenMaiVang.Models.MemberView
@{
    ViewBag.Title = "Register";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Ajax.BeginForm("Register", "Account", new AjaxOptions
    {
        InsertionMode = InsertionMode.Replace,
        HttpMethod = "POST",
        UpdateTargetId = "register"
    }))
{
    <div class="left-content-box">
        <div class="title-content">
            Đăng ký tài khoản</div>
        <div class="h1-bg">
        </div>
        <div class="validation">@Html.ValidationSummary(true)</div>
        
        <div id="register">
            <!-- Thông tin đăng nhập -->
            <div class="register">
                <h2>
                    Thông tin đăng nhập</h2>
                <div class="row">
                    <div class="left-row">@Html.LabelFor(model => model.Username)</div>
                    <div class="input-row">@Html.EditorFor(model => model.Username) @Html.ValidationMessageFor(model => model.Username)</div>
                </div>
                <div class="row">
                    <div class="left-row">@Html.LabelFor(model => model.Password)</div>
                    <div class="input-row">@Html.EditorFor(model => model.Password) @Html.ValidationMessageFor(model => model.Password)</div>
                </div>
                <div class="row">
                    <div class="left-row">@Html.LabelFor(model => model.ConfirmPassword)</div>
                    <div class="input-row">@Html.EditorFor(model => model.ConfirmPassword) @Html.ValidationMessageFor(model => model.ConfirmPassword)</div>
                </div>
            </div>
            <!-- hết Thông tin đăng nhập -->
            <!-- Thông tin giao hàng -->
            <div class="register">
                <h2>
                    Thông tin giao hàng</h2>
                <div class="row">
                    <div class="left-row">@Html.LabelFor(model => model.MemberName)</div>
                    <div class="input-row">@Html.EditorFor(model => model.MemberName) @Html.ValidationMessageFor(model => model.MemberName)</div>
                </div>
                <div class="row">
                    <div class="left-row">@Html.LabelFor(model => model.Birth)</div>
                    <div class="input-row">@Html.EditorFor(model => model.Birth) @Html.ValidationMessageFor(model => model.Birth)</div>
                </div>
                <div class="row">
                    <div class="left-row">@Html.LabelFor(model => model.CMND)</div>
                    <div class="input-row">@Html.EditorFor(model => model.CMND) @Html.ValidationMessageFor(model => model.CMND)</div>
                </div>
                <div class="row">
                    <div class="left-row">@Html.LabelFor(model => model.Email)</div>
                    <div class="input-row">@Html.EditorFor(model => model.Email) @Html.ValidationMessageFor(model => model.Email)</div>
                </div>
                <div class="row">
                    <div class="left-row">@Html.LabelFor(model => model.Phone)</div>
                    <div class="input-row">@Html.EditorFor(model => model.Phone) @Html.ValidationMessageFor(model => model.Phone)</div>
                </div>
                <div class="row">
                    <div class="left-row">@Html.LabelFor(model => model.Address)</div>
                    <div class="input-row">@Html.EditorFor(model => model.Address) @Html.ValidationMessageFor(model => model.Address)</div>
                </div>
                <div class="row">
                    <div class="left-row">@Html.LabelFor(model => model.Gender)</div>
                    <div>@Html.RadioButtonFor(m => m.Gender, 1, new { @checked = "checked" }) Nam
                        <br />
                        @Html.RadioButtonFor(m => m.Gender, 0) Nữ
                        @Html.ValidationMessageFor(model => model.Gender)</div>
                </div>
                <!-- hết thong tin giao hàng -->
                <div class="row">
                    <div class="midle">
                        <input class="submit-form" name="submit" value=" Đăng Ký " type="submit" /></div>
                    <div class="midle">
                        <input class="submit-form" name="reset" value=" Xóa Bỏ " type="reset" /></div>
                </div>
            </div>
        </div>
    </div>
}
<table width="100%">
</table>
